package org.jsola.hr.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseDeleteDO;
import org.jsola.core.entity.Key;

import java.math.BigDecimal;
import javax.persistence.Table;

/**
 * 返费记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hr_sale_rebates_record")
@Key(UUID = true)
public class SaleRebatesRecordDO extends BaseDeleteDO<String> {

    private static final long serialVersionUID = 1L;

    /**
     * 销售人员userId
     */
    private String saleUserId;
    /**
     * 销售人员姓名
     */
    private String saleName;
    /**
     * 用工单位id
     */
    private String companyId;
    /**
     * 用工单位名称
     */
    private String companyName;
    /**
     * 返费计算年月 202008
     */
    private String calculationMonth;
    /**
     * 客户服务费金额
     */
    private BigDecimal serverCost;
    /**
     * 是否是首次(1:首次,0:续约)
     */
    private Boolean isNew;
    /**
     * 返费规则ID
     */
    private String rebatesRulesId;
    /**
     * 规则名称
     */
    private String rulesName;
    /**
     * 返费比例
     */
    private BigDecimal proportion;
    /**
     * 分成比例
     */
    private BigDecimal dividedProportion;
    /**
     * 返费金额
     */
    private BigDecimal rebatesAmount;
    /**
     * 备注
     */
    private String remark;



}

